package com.springboot.dao;

import com.springboot.entity.UserLoginJwtEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyj
 * @since 2023-03-09
 */
@Mapper
public interface UserLoginJwtDao extends BaseMapper<UserLoginJwtEntity> {

    void deleteByJwtAndUserId(@Param("userId")String userId,@Param("jwt") String jwt);

    UserLoginJwtEntity selectByJwtAndUserId(@Param("userId") Integer userId,@Param("jwt") String jwt);
}
